Sum frequency beam analysis for the determination of the temporal characteristics of ultrashort light pulses