Scalable synthesis of few-layer graphene ribbons with controlled morphologies by a template method and their applications in nanoelectromechanical switches.