Realistic modeling of the electronic structure and the effect of correlations for Sn/Si(111) and Sn/Ge(111) surfaces