BASF to gradually resume chemical production after accident