Biodiesel production from waste frying oil and its application to a diesel engine