Room temperature ionic liquids in a heat treatment process for metals