Coherent properties of nanoelectromechanical systems