1-D non-minimum phase retrieval by gain differences