Recurrence measures and transitions in stock market dynamics