Cryptanalysis of optical encryption with a reference wave in a joint transform correlator architecture