Magnetic properties of perovskite cobaltate and ferrate heterostructures