A third-order calculation of the 16O binding energy and of the single-particle energies of 17O