A Monte Carlo model for photoneutron generation by a medical LINAC