Spain investigators: Train driver was on phone before fatal crash