The physics behind why cats fit themselves in weird places