Population genetics on islands connected by an arbitrary network: an analytic approach.