Maximal Sobolev regularity in Neumann problems for gradient systems in infinite dimensional domains