Dynamics of transposable elements in metapopulations: a model of P element invasion in Drosophila.