Solutions of the Fokker-Planck equation in detailed balance