Assessment of density functional methods for exciton binding energies and related optoelectronic properties