Thiem beats Raonic in three to reach Indian Wells final