Application of Sliding Mode Control to Switch-Mode Power Supplies