A model of Hall-Petch relationship in nanocrystalline materials