Germany to extend border controls to curb illegal migration