Determining the acid number of biodiesel