Controlling the device functionality by solventengineering, solar cell versus light emitting diode