Optical bandgap of semiconductor nanostructures: Methods for experimental data analysis