Subgroups of Lie groups and symmetry reduction for nonlinear partial differential equations