Dynamic optogalvanic effect in rare gases and uranium