The effects of environmental variables on the heart rates of invertebrates