Text this: Projective construction of two-dimensional symmetry-protected topological phases with U(1), SO(3), or SU(2) symmetries