High-temperature photoelectron spectroscopy. A study of niobium monoxide and tantalum monoxide