Average consensus in networks with nonlinearly delayed couplings and switching topology