Electrical Detection of Oscillations in Micro- and Nano-Cantilevers