Effect of transverse magnetic fields on dose distribution and RBE of photon beams: comparing PENELOPE and EGS4 Monte Carlo codes