3D optical sectioning and image analysis of particles in biphasic systems