Effect of the Cu foam pretreatment in the growth and inhibition of copper oxide nanoneedles obtained by thermal oxidation and their evaluation as photocathodes