Monte Carlo simulations for the ANTARES underwater neutrino telescope