Reflection-type THz imaging with a phase-retrieval algorithm