Coupled mode theory for acoustic resonators