Stochastic maximum principle for optimal control of partial differential equations driven by white noise