FEM modelling and experimental characterization of microbeams in presence of residual stress