Parental investment, sexual selection and sex ratios