Far-infrared free-electron lasers and their applications