Monte Carlo investigations of radiotherapy beams: studies of conventional, stereotactic and unflattened beams