Two anyons on the sphere: Nonlinear states and spectrum