Mathematical modeling of focal axonal swellings arising in traumatic brain injuries and neurodegenerative diseases