Thurston's theory of surfaces