Mechanism of gypsum hardening