First Principles Study of Rare-Earth Nickelates : From Bulk to Heterostructures