Extreme Networks to buy Optranet in stock deal