Organic and inorganic surface modification of semiconductors for electronic and energy conversion devices