Spectral evolution and relaxation oscillations in dye lasers