Gravar-mail: QoS-aware CR-BM-based hybrid framework to improve the fault tolerance of fog devices