The development of a volume element model for energy systems engineering and integrative thermodynamic optimization