Spin liquid and spin ice under high pressure: a neutron study of R2Ti2O7 (R = Tb, Ho)