Monitoring of slag composition changes by density measurements