Model reduction by generalized differential balancing