Determination of the elastic modulus of micro- and nanowires/tubes using a buckling-based metrology