Chile is hit by strong aftershocks and issues a tsunami warning just before its new president is sworn in.