Quantum confinement and disorder in porous silicon: Effects on the optical and transport properties