Pore-scale simulation of immiscible multiphase flow with moving contact lines using level sets