Optimal Sampling for Generalized Linear Model under Measurement Constraint with Surrogate Variables