Modeling of competition between shear yielding and crazing in amorphous polymers’ scratch