Circuit quantum electrodynamics in the ultrastrong-coupling regime