Magnetic domain walls: from physics to devices