Analysis of multipath interference in three-slit experiments