A new approach to grain boundary engineering for nanocrystalline materials