Ecological constraints on amphibian metamorphosis: interactions of temperature and larval density with responses to changing food level