Egypt military court jails 18 opponents for ‘violence’