Theory and application of the material work function for chemical sensors based on the field effect principle