Pol Espargaro has taken his first victory in an exciting 125cc Indianapolis Grand Prix.