Toric Varieties in Error-Control Coding Theory