A generalized formula for induced magnetic flux in a playback head