Electronic, magnetic and ferroelectric properties of multiferroic TlNiO3: A first principles study