Investigations and improvements in ptychographic imaging