Tensor force effect on single-proton energy levels of oxygen isotopes