Carbon-dioxide absorption spectroscopy with solar photon counting and integrated lithium niobate micro-ring resonator