Limit cycles of a class of discontinuous piecewise differential systems separated by the curve y = xn via averaging theory