On Four-Dimensional Gauge Theories from Type II Superstrings