Field-induced canting of magnetic moments in GdCo5 at finite temperature: first-principles calculations and high-field measurements