Optimized Over-the-Air Computation for Wireless Control Systems