Security against data falsification attacks in smart city applications