Rattlesnakes change their rattle frequency based on nearby threats, a study finds