Optimization of black diamond films for solar energy conversion