Origin of the negative thermal expansion in and