Effects of context and relative rank on mate choice and affiliation ratings