Random and exchange anisotropy in consolidated nanostructured Fe and Ni: Role of grain size and trace oxides on the magnetic properties