Short-range (pairing) versus long-range (collective) correlations in two-neutron transfer reactions induced by 18O