Large orbital polarization in nickelate-cuprate heterostructures by dimensional control of oxygen coordination