Optical and electrical properties of compound and transition metal doped compound semiconductor nanowires