How stereotypes impair women's careers in science