Danish court extends custody for 5 men held in terror probe