Composing Energy Services in a Crowdsourced IoT Environment