λ-Symmetries for the Reduction of Continuous and Discrete Equations