Method to Design Power and Energy Capacity of Onboard Energy Storage Device for Emergency Operation Based on Simple Formulation