Pore filling and light trapping in solid-state dye-sensitized solar cells