Electronic and magnetic properties of the Jahn-Teller active fluoride NaCrF3 from first-principles calculations