Generalized Lorenz–Mie theory of photonic wheels