Implementation of gradient-corrected exchange-correlation potentials in Car-Parrinello total-energy calculations.