This is a pre-copyedited, author-produced version of an article accepted for publication in Philosophical Transactions of the Royal Society B: Biological Sciences following peer review. The version of record is available https://royalsocietypublishing.org/doi/10.1098/rstb.2020.0399