Study of second harmonic emissions for characterization of laser-plasma X-ray sources