Optimal patch use and metapopulation dynamics