Neutrino-driven winds in the aftermath of a neutron star merger: Nucleosynthesis and electromagnetic transients