Microstructure and impurity dependence in mechanically alloyed nanocrystalline MgB2 superconductors