Optimal Control Of Electrified Powertrains With The Use Of Drive Quality Criteria