I-V curve of a diode and solar cell: