A man from Cambridgeshire, who used malware to spy on unknowing victims through their personal webcams, has been jailed for three years.