Selective Synthesis and Photoluminescence Study of Pyrazolopyridopyridazine Diones and N-Aminopyrazolopyrrolopyridine Diones