Solid-state effects on thermal-neutron cross sections and on low-energy resonances