An introduction to the theory of ptychographic phase retrieval methods