Returns the node adjacent to the given selection point in the specified direction, or null if at a boundary.