Effect of a magnetic filter on hydrogen ion species in a multicusp ion source