nucleobase-containing compound metabolic process