Structural control of Langmuir–Blodgett films containing metal cations by ligands exchange