Forcing Spanish political parties to nominate more women is helping them win votes