A Fokker–Planck equation for a piecewise entropy functional defined in different space domains. An application to solute partitioning at the membrane–water interface