Conditions for the existence of stable strange quark matter