Markets end the week on a strong note; Midcaps outperform, Nifty and Sensex gain 4%