Tight-binding description of the electronic structure and total energy of tin