Energy distribution and formation mechanism of fast atoms in a fast atom beam