Endurance improvement due to rapid thermal annealing (RTA) of a TaOx thin film in an oxygen ambient