A study of magnetoplasmadynamic effects in turbulent supersonic flows with application to detonation and explosion