Light attenuation effect in the calculation of scintillation neutron counter response functions and detection efficiencies