Temperature effects in the Nambu--Jona-Lasinio model with six and eight quark interaction