Distributed generalized ADMM