Reservoir engineering in circuit quantum electrodynamics