Monte Carlo study on a flattening filter-free 18-MV photon beam of a medical linear accelerator