A simultaneous‐modular approach to process flowsheeting and optimization. Part I: Theory and implementation