Simulation of long-baseline neutrino oscillation experiments with GLoBES