The measurement of inner potential for diamond, germanium and silicon