Theory of the Senftleben effect