Text this: Optimal systems and invariant solutions of the wave equation on spherically symmetric spacetimes admitting the isometry groups G7