Structure and morphology control of multi-functional nanomatertials for high performance renewable energy devices