Phase-field simulation of texture evolution in magmatic rocks