Microstructural modelling of polycrystalline materials and multilayer actuator layers