Statistics for Tuning of the flat-band potentials of nanocrystalline TiO2 and SnO2 particles with an outer-shell MgO layer