Automatic optimization of multichip RFID tags