A general approach to photon radiation off fermions