A deep energy method for the analysis of thermoporoelastic functionally-graded beams