The optical properties of titanium nitrides and carbides: Spectral selectivity and photothermal conversion of solar energy