Genetics and evolutionary consequences of maternal effects