Monte Carlo modelling of radiation transport in voxel geometries with applications to dosimetry and medical physics