Higher-order topological pumping and its observation in photonic lattices