MEMS characterised by an electronic circuit specially adapted for controlling or driving the same