Sliding Mode Based Extremum Seeking Control For Multivariable And Distributed Optimization