Rotationally resolved photoionization of O2+ near threshold