An eclipsing-binary distance to the Large Magellanic Cloud accurate to two per cent