Nanocrystals in compression: unexpected structural phase transition and amorphization due to surface impurities.