Opportunity costs of having a child, financial constraints and fertility