Mutualistic coevolution and community diversity favour persistence in metacommunities under environmental changes