Former Virginia sheriff convicted of bribery in cash-for-badges scheme