Di-functional nanocomposite films for efficient conversion and storage of solar energy