Entropy production in nonequilibrium systems described by a Fokker-Planck equation