Analysis of combustion modes in a cavity based scramjet