The practical determination of lattice parameters using the centroid method