Penalty methods for the solution of generalized Nash equilibrium problems