Controlled Motion of Solvent-Driven Gel Motor and Its Application as a Generator