3-D Finite Element Mesh Optimization Based on a Bacterial Chemotaxis Algorithm