Direct Solar-to-Electrochemical Energy Storage in a Functionalized Covalent Organic Framework.