The terror attacks in Paris, Brussels and Berlin were all carried out by men radicalised in jail. In Germany, politics and the judiciary are trying out new approaches to prevent inmates from becoming extremists. By Esther Felden and Matthias von HeinMore