Quantized transport for a skyrmion moving on a two-dimensional periodic substrate