Vibrations for fault detection in electric machines