Luminescence and energy migration in a one-dimensional Gd3+ compound: Ca4GdO(BO3)3