pH sensors based on wide bandgap semiconductors