Optical absorption of plasmas for various collision regimes