Asymptotic limit of fractional Allen-Cahn equations and nonlocal minimal surfaces