Australia legend Shane Warne has said the ECB's decision to end Kevin Pietersen's England career is "a disgrace".