Single and double projections of generator-coordinate wave functions