From Fienup's phase retrieval techniques to regularized inversion for in-line holography: tutorial