A simple method for the evaluation of the surface in atom dimerisation and electronic states of the InP(100) surface