Classifying and detecting symmetry fractionalization in gapped 2D spin liquids