Electrochemical and spectroscopic studies of bodipy dyes and nanostructured electrodes for solar energy harvesting and conversion