Control of spiral-wave dynamics using feedback signals from line detectors