Image-based Finite Element Mesh Generation for Microstructures