Porous silicon as multifunctional material in MEMS