A condensation method for generalized geometric programming