Renormalization of trial wave functionals using the effective potential