Method for optical modelling of non-uniform and non-parallel multi-thin film MEMS optical filters and mirrors