Search for pair production of first or second generation leptoquarks in proton-proton collisions at root s=7 TeV using the ATLAS detector at the LHC