Head-to-head domain walls in magnetic nanostructures