Magnetoexcitonic states in a quantum ring with the Winternitz-Smorodinsky confinement potential