Renormalization of the two-dimensional stochastic nonlinear wave equations