Effects of Gate-Induced Electric Fields on Semiconductor Majorana Nanowires