Structure, doping and superconductivity in HgBa2CaCu2O6+δ (Tc ⩽ 128 K)