Spectroscopy of multiply charged titanium ions in high-density magnetic fusion plasmas