Persistent charge and spin currents in a quantum ring using Green׳s function technique: Interplay between magnetic flux and spin–orbit interactions