Mathematical modeling of electrodeposition of permalloy thin film I. direct current plating