Characterization of a green and environmentally friendly sensitizer for a low cost dye-sensitized solar cell