3D Stress Analysis of Multilayered Functionally Graded Plates and Shells under Moisture Conditions