Carbon nanotube effects on electroluminescence and photovoltaic response in conjugated polymers