Complex network of nonlinear oscillators interacting through a common environment