Band structure of n- and p-doped core-shell nanowires