MOEMS devices for future astronomical instrumentation