Propagation of nonlinear thermoelastic waves in porous media within the theory of heat conduction with memory: physical derivation and exact solutions