Microscopic Theory of Rb1 - x(NH4)xH2PO4 Type Compounds