Holomorphic disks and topological invariants for closed three-manifolds