Meson masses for the CPn−1 model in two dimensions