King Charles' historic state visit, the first by a British monarch since Queen Elizabeth II's in 2007, has come to an end.