Formation and evolution of crystal and local structures in nanostructured Ln2Ti2O7 (Ln = Gd–Dy)