Coupled mode theory and network applications