Localisation phenomena in glassy polymers: influence of thermal and mechanical history