Why DNA and RNA are genetic material?