The Alexander polynomial of a 3-manifold and the Thurston norm on cohomology