Hall–Petch relationship in nanocrystalline Ni and Be–B alloys