Theoretical calculation of bulk properties of ionic crystals from the cluster approach: Application to NaF