Surface photovoltage studies of n-type and p-type InP