Dynamic local field correction in the calculation of electronic stopping power