Preconditioning the discrete dipole approximation