Design a buck-boost converter to provide a regulated output voltage of 5V from an input that varies between 2V and 8V. What values of inductor and capacitor would you choose, and how would you ensure stable operation?