Influences of surface charges and gap width between p-type and n-type semiconductors on charge pumping