Topological approach of characterizing optical skyrmions and multi-skyrmions