Supreme Court quashes appointment of PJ Thomas