Water invasion and residual gas distribution in partially filled fractures via phase-field method