Effects of some electrolysis parameters on the internal stresses of thin permalloy films