Thiem beats Federer to take the Indian Wells title