Female resistance to sexual coercion can evolve to preserve the indirect benefits of mate choice