Modelling RF-plasma interaction in ECR ion sources