Thai opposition loses bid to annul election