Correlation between structural data and spectroscopic studies of a new β-diketonate complex with trivalent europium and gadolinium