Nobel scientist resigns over sexist remarks about women in labs