Pakistani court annuls ex-military ruler's conviction