Mechanisms of wettability control on two-phase immiscible displacement in microfluidic porous media