A novel diagnostic technique for H−(D−) densities in negative hydrogen ion sources