Reliability of MEMS: effects of different stress conditions and mechanical fatigue failure detection