Kähler transformations and the coupling of matter and Yang-Mills fields to supergravity