Measurement of charge-carrier concentration in indium phosphide by means of an electrolyte-semiconductor contact