Gatlin wins 100m as Bolt finishes third caused a major upset