A comprehensive approach to the characterization of trigeneration systems