A double-target system for precision measurements of nuclear medium effects