Plastic deformation of amorphous and semi-crystalline materials