Optimization of biodiesel production from edible and non-edible vegetable oils