Transition-metal-nitride-based thin films as novel energy harvesting materials