Autonomous use of electrical energy by an artificial molecular machine