Energy distribution of photoneutrons from Bi and Pb