MEMS-based-inclinometer