Dynamical mean-field approach to materials with strong electronic correlations