Average Consensus in Switching Nonlinearly Coupled Networks with Time-Varying Delays