The theory of absorption in aggregated media