Semiconductor surface relaxation and reconstruction evaluated using the pseudofunction method