Text this: Theoretical understanding of water splitting by analyzing nanocatalyst photoabsorption spectra