Designing Nanomaterials For Electronic And Optoelectronic Devices Through Charge Carrier Control