Height pairings and preperiodic points in P^1