An automated controlled atmosphere microbalance for the measurement of moisture sorption