Humidity sensitive properties of pure and Mg-doped CaCu3Ti4O12