Geometric class field theory and Cartier duality