Single-shot characterization of vector beams by generalized measurements