A wide wavelength range spectrometer (1150-8000 Å) for the RFX reversed field pinch experiment