modelling of series rlc circuit