Ptychographic data processing