Metamodel-based importance sampling for the simulation of rare events