Surfaces in 3-manifolds and the Thurston norm