Residual stresses in functionally graded plates