Preparation of novel functionalized purine-2,6-diones and their use in medicine