Online Optimization for Networked Distributed Energy Resources with Time-Coupling Constraints