The hyperspherical-expansion approach to nuclear bound states. I.