Self-sustaining thin films as a means of reducing first wall erosion and plasma impurity influx