A solar-powered plane that is attempting a record-breaking flight around the world has been damaged after making an unscheduled stop in Japan.