Phase transitions in monoclinic RbD2PO4