Characterization of Photophysical Properties of D−π−A−π−D Type Diketopyrrolopyrrole Based Molecules for Organic Light-Emitting diodes and Organic Solar Cells