A three-phase flow model with two miscible phases