Micromechanical thermogravimetry