Optical transition radiation as a real-time, on-line diagnostic for free electron laser systems