Post processing of the layer deposited by electric discharge coating