New 4-substituted derivatives of pyrazolo[3,4-d]pyrimidines and pyrrolo[2,3-d]pyrimidines and uses thereof