Selection in two-sex structured populations