Optimizing portal dose calculation for an amorphous silicon detector using Swiss Monte Carlo Plan