How detectives tracked down a gang of armed robbers who raided shops and post offices across the Midlands.