Tech Mahindra shares get an upgrade ahead of earnings on margin boost