MoC-Based Modeling and Simulation of Foam EOR Processes in Multi-Layered System