Effect of porosity on the dye solar cell's performance