Spectral and energy characteristics of a pulsed hydrogen fluoride laser and rotational relaxation of HF molecules