Quantifying community resilience after earthquakes and tsuna