Reconnection in planetary magnetospheres