Five men, including three who threw bricks and other missiles at a mosque, have been jailed for taking part in violent disorder in Stoke-on-Trent.