Simple three-program implantable muscle stimulator with optical control