Northvolt chief resigns a day after bankruptcy filing