Prion-like conversion during amyloid formation at atomic resolution