Ab initio calculation of ideal strength and phonon instability of graphene under tension