Laser-excited shear waves in solid and liquid two-dimensional dusty plasmas