Precise determination of optical band gap in Cr-doped semiconductor nanowires