Theory of the thermal expansion of Si and diamond.