Theory of Electrical Double Layers in Adsorbed Films