Lattice vibrations and Raman scattering in two-dimensional layered materials beyond graphene