Text this: Formulation of energy loss due to magnetostriction to design ultraefficient soft magnets