Terpstra wins Paris-Roubaix with late solo attack