On the buckling behavior of micromachined beams