All-optical sampling and magnification based on XPM-induced focusing.