Canonical quantization of the Gowdy model