Connecting two intrinsic electron donor and acceptor moieties through distinctive π-bridging units to explore their optical and nonlinear optical properties