Omegatron Studies I: Interaction of oxygen with tantalum and tungsten