Phase transitions and amorphization inKD2PO4andKH2PO4under high pressure