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