Magnetocrystalline Anisotropy of Ni and Mn Substituted Nd2Fe14B Compounds