ALICE: An Interpretable Neural Architecture for Generalization in Substitution Ciphers