Photonic band engineering in absorbing media for spectrally selective optoelectronic films.