Three-dimensional stress states of composite and sandwich plates and shells due to transverse shear loads