Design of an integrated smart public lighting system