Fabrication of both the photoactive layer and the electrode by electrochemical assembly: towards a fully solution-processable device.