Electrical semiconduction modulated by light in a cobalt and naphthalene diimide metal-organic framework