Binding energies and wave functions of three bosons interacting through local potentials