German police to restructure as threat of extremism grows