The wives of two Venezuelan mayors jailed over their failure to contain anti-government protests win an election to replace them.