Theory of the synchronously pumped picosecond dye laser