Maternal investment, life histories, and the costs of brain growth in mammals