Some characterizations of magnetic Sobolev spaces