Accounting for self-absorption in calculation of light collection in plastic scintillators