Obama, Castro discuss ties, to meet at summit as detente takes hold