Electronic Structure Calculations of Solids with a Similarity-Transformed Hamiltonian