Topological defect lines and renormalization group flows in two dimensions