Infrared spectroscopy of competitive interactions between liquid crystals, metal salts, and dimethyl methylphosphonate at surfaces.