Fires burn through Shanghai chemical plant