Approximate spin-projected spin-unrestricted density functional theory method: Application to the diradical character dependences of the (hyper)polarizabilities in p-quinodimethane models