Flexible operation of electricity-intensive industrial processes