N=14and 16 shell gaps in neutron-rich oxygen isotopes