Two-dimensional reaction solvents: surfactant bilayers in the formation of ultrathin films