A theory of cortical map formation in the visual brain