The particle tracking code BBCNI for large negative ion beams and their diagnostics