A finite element formulation for analysis of functionally graded plates and shells