Linking diet switching to reproductive performance across populations of two critically endangered mammalian herbivores - Communications Biology