Reproductive decisions in great tits : An optimality approach