Viscosity solutions for an optimal control problem with Preisach hysteresis nonlinearities