A molecular spin-photovoltaic device