Finite element modeling of random multiphase materials for micromachining