Visualization of the domain structure of ferromagnetic films using the magnetochemical effect