The Thurston norm and twisted Alexander polynomials