Heterocyclic compounds containing isoquinoline or hydrogenated isoquinoline ring systems