Pair production of scalar leptoquarks at the LHC