Quantized Majorana pump in semiconductor-superconductor heterostructures