Narrow-bandgap materials for optoelectronics applications