CEGI: Measuring the trade-off between efficiency and carbon emissions for SLMs and VLMs