Energy and intensity modulated protons beams: a Monte Carlo dosimetry study