β-NMR studies of spin-lattice relaxation in glassy and layer-crystalline compounds