Internet of Things and M2M communications as enablers of smart city initiatives