Assessing electrical flexibility in process industry