Model reduction of unstable systems using balanced truncation method and its application to shallow water equations