Patterns of nucleotide substitution in pseudogenes and functional genes