Lion Air plane 'flew erratically' day before crash