Forward and Backward Mean-Field Stochastic Partial Differential Equation and Optimal Control