Gravar-mail: Design of a smart microgrid with small-scale hydro generation: a practical case study