Enhanced gauge symmetry in type II string theory