Method of ion current detection for HCCI combustion on SI/HCCI dual mode engine