FPGA Implementation of Optimal and Approximate Model Predictive Control for a Buck-Boost DC-DC converter