Tuning the optoelectronic properties of core-substituted naphthalene diimides by the selective conversion of imides to monothioimides