Afghanistan extends voting after polling stations fail to open