Circuit quantum electrodynamics (cQED) with modular quasi-lumped models