PoseGPT: Quantization-based 3D Human Motion Generation and Forecasting