Studies on the design of electron cyclotron resonance plasma sources and its interaction with materials