A thermal stress finite element analysis of isotropic and laminated beams via unified formulation