Preparation of agar nanospheres: comparison of response surface and artificial neural network modeling by a genetic algorithm approach.