Heterocyclic compounds containing purine ring systems