Quantum hydrodynamic model for the nonlinear electron dynamics in thin metal films