A Generalized approach to genetic drift and its applications - I. An example of the evolution of ribosomal RNA genes