Bending magnet and wiggler radiation