Simultaneous production (part II). Small-scale cogeneration and trigeneration