Former police officer jailed for voyeurism