Enhanced resolution of lossy interferometry by coherent amplification