Existence and optimality necessary conditions for general stochastic mean-…eld control problems