Quilted Floer homology of 3-manifolds