Modeling genome evolution with a diffusion approximation of a birth-and-death process