Orbital Contributions to the Electron g Factor in Semiconductor Nanowires