Pore-scale simulation of multicomponent multiphase reactive transport with dissolution and precipitation