Circuit-oriented modelling of ring-resonators