A convective model for the zonal jets in the atmospheres of Jupiter and Saturn