Generation and characterization of polarization-shaped femtosecond laser pulses