Generalized approximate survey propagation for high-dimensional estimation