High temperature phase transitions and thermal decomposition of KH2PO4 crystals