Generalized stress–strain recovery formulation applied to functionally graded spherical shells and panels under static loading