A model for inorganic carbon fluxes and photosynthesis in cyanobacterial carboxysomes