On the integrand-reduction method for two-loop scattering amplitudes