Particle Swarm Optimization for solving NLP and MINLP in chemical engineering