Observation of terahertz coherent edge radiation amplified by infrared free-electron laser oscillations