Complex magnetic domain structures in oxides: physical origin and device applica