A Mathematical approach to loss estimation in non-homogeneous magnetic materials