Mitsubishi swings to $396 million quarterly profit