Royal Commission completes quake inquiry