Determination of frequency-dependent polarizabilities using current density-functional theory.