detailed explanation of how a black hole functions