Enviar por SMS: Design of a smart microgrid with small-scale hydro generation: a practical case study