Quantum complexity of symmetry-protected topological phases of matter