THE GROSS-KOHNEN-ZAGIER THEOREM IN HIGHER DIMENSIONS