Measurements of the mechanical behaviour of micromachined silicon and silicon-nitride membranes for microphones, pressure sensors and gas flow meters