Relativistic second-harmonic generation of a laser from underdense plasmas