Modeling light scattering from mesoporous silicon