Optorsim: a Simulation Tool for Scheduling and Replica Optimisation in Data Grids