An ab-initio theoretical investigation of the soft-magnetic properties of permalloys