Coherent synchrotron radiation at submillimeter and millimeter wavelengths