Design and Implementation of a Low-Cost Physical Unclonable Function and Its Application in RFID