Infectious disease dynamics in metapopulations with heterogeneous transmission and recurrent mobility