Connection between the electronic structure of tin in its compounds and the isomer shifts in the Mössbauer spectra