Size dependence of the pressure-induced phase transition in nanocrystals