Periodic solutions of nonlinear wave equations for asymptotically full measure sets of frequencies