Design of a Low-Cost Gamma Corrector with an Optimized Piecewise Linear Approximation Method