Conditions for large non-Gaussianity in two-field slow-roll inflation