Ab-initio Calculation of the Properties of Permalloys Used in Electrical Machines