Heegaard Floer homology of certain 3-manifolds and cobordism invariants