Cost-optimal design and energy management of fuel cell electric trucks