Optical properties of clusters and molecules from real-time time-dependentdensity functional theory using a self-consistent field