Electronic and optical properties of nanometer-sized chromophores in bacterial cellulose