Nifty 50 hits 1-month high as markets extend gains for third session