Atomic layer deposition of tantalum oxide with controlled oxygen deficiency for making resistive memory structures