Preparation of composite membranes by a spin coating process