Interplay between male quality and male-female compatibility across episodes of sexual selection