Interaction of tantalum with diatomic and atomic oxygen at low pressures