Control of auxiliary power unit for hybrid electric vehicles