Krein conditions for coherent configurations