Brittle‐ductile transition in uniaxial compression of polymer glasses