How to escape male infanticide: mechanisms for avoiding or terminating pregnancy in mammals