An electric car has made a record-breaking trip on a single charge powered by the sun.