FaaF: Facts as a Function for the evaluation of generated text