Validation of BEAMnrc Monte Carlo model for a 12 MV photon beam