First-order algorithms for nonsmooth nonconvex optimization in large-scale wireless networks