Invia SMS: Analysis of the design and implementation of an intelligent system for energy control in residential uses