Gravar-mail: Determination of electron energy, spectral width, and beam divergence at the exit window for clinical megavoltage x-ray beams