Synthesis of Some Novel Pyrimidinedione and Pyrimidinetrione Derivatives by a Greener Method: Study of Their Antimicrobial Activity and Photophysical Properties