Dynamics of fluid displacement in mixed-wet porous media