Automated algorithms for band gap analysis from optical absorption spectra. (December 2017)