Variation of parameters formula and Gronwall inequality for differential equations with a general piecewise constant argument