Natural selection and the regulation of defenses: A signal detection analysis of the smoke detector principle