Multi-layer cloud architectural model and ontology-based security service framework for IoT-based smart homes