Functional optimization of hot-stamped components by local carburization