Microdevices formed as a single homogeneous piece, i.e. wherein the mechanical function is obtained by the use of the device