Investigation of the geometric and electronic structures of ErSi(2−x) with the density functional theory and comparison with STM images