Synthesis of gain scheduling controllers for a class of nonlinear systems based on a spatial discretization procedure