High-precision scale setting in lattice QCD