Hardness anisotropy of SrF2, BaF2, NaCl and AgCl crystals