Effects of Residual Stress on Nano-Mechanical Behavior of Thin Films