Production of highly charged ions in the RIKEN 18 GHz ECR ion source using an electrode in two modes