Wilson expansion for correlators of vector currents at the two-loop level: Dimension-four operators