Phase diagram of the J1-J2 Heisenberg model on the kagome lattice