Email Post: A phase-retrieval toolbox for X-ray holography and tomography