Well-posedness in the energy space for semilinear wave equations with critical growth