Study of 4,4′-bis(4-dimethylaminostyryl) benzene based diodes