Design, Control And Energy Optimization Of A Rapid-Prototyping Hybrid Powertrain Research Platform