Whyalla steelworks refinancing deal struck