Nonconvex And Nonsmooth Optimization For Robust Control And Power Systems