RTNinja: A generalized machine learning framework for analyzing random telegraph noise signals in nanoelectronic devices