Exact Fokker-Planck equations from stochastic master equations