Entanglement in thermal equilibrium states