An Alternative Calculation Technique in the Generator-Coordinate Method (GCM) to Determine the Ground State Energies of 2H and 4He and the Electric Quadrupole Moment of 2H