Negative impacts of an unwelcoming physics environment on undergraduate women