Rigid unit modes and the negative thermal expansion in ZrW2O8