Acceleration of the iterative solver in the discrete dipole approximation: Application to the orientation variation of irregularly shaped particles