Computing Nonlinear Functions Over Communication Networks