Control of ferroelectric polarization in multiferroic YMn2O5 by external pressure