Terror threat: four jailed in homemade bomb plot case