Numerical investigation of the spark discharge process in a crossflow