Effects of internal molecular degrees of freedom on the thermal conductivity of some glasses and disordered crystals