Generalized analytical model for the calculation of light transmittance through a thin conducting film