Optical phonon anisotropies in the layer crystals SnS 2 and SnSe 2