Search for pair production of third-generation leptoquarks and top squarks in pp collisions at √s=7 TeV