The two faces of protein misfolding: gain- and loss-of-function in neurodegenerative diseases