Text this: Development of a multifunctional optical diagnostic system at the Shenguang-II upgrade laser facility