Electronic and optoelectronic materials and devices inspired by nature