Andreev interference in adiabatic pumping