Gate electrodes for transistors with a floating gate