Dimension reduction based adaptive dynamic programming for optimal control of discrete-time nonlinear control-affine systems