Residual Stresses in Micro-Electro-Mechanical Systems