Design, implementation and test of the XSC extreme shape controller in JET