Danish court convicts three men of planning attacks