A functional trade-off between trophic adaptation and parental care predicts sexual dimorphism in cichlid fish