Treatments for avoiding stiction of elastic or moving parts of MEMS