Radiation from internal shocks in magnetized supercritical flows