A Preventing Schema to Determinate Structural Damage in Buildings Caused by Earthquakes Using a Platform Based in Wireless Sensor Networks