A general approach for defining the macroscopic free energy density of saturated porous media at finite strains under non-isothermal conditions