Text this: Nonlinear equations for the determination of temperature and heat flux in the three-phase-lag theory with application