Vertical flaps of arbitrary shape for reflective MEMS displays and optical modulators