Exact results for the entanglement entropy and the energy radiated by a quark