Nanostructured materials for solar cells: electrochemical fabrication and characterization