One-loop matching for quark dipole operators in a gradient-flow scheme