Domain wall diodes in ferromagnetic planar nanowires