Plasma electrolysis for surface engineering