An optimal probabilistic solution for information confinement, privacy, and security in RFID systems