A complete analysis of FCNC and CP constraints in general SUSY extensions of the standard model