An algorithm for identification of natural disaster affected area