Equation-oriented modeling, simulation, and optimization of integrated and intensified process and energy systems