The generator-coordinate theory as a flexible formulation of the many-body Schrödinger equation