Electrostatics of nanowire transistors with triangular cross sections