Atomically thin building blocks could make optoelectrical devices more efficient