Baby P chief: My dismissal was illegal