Cascade configuration of logical gates processing information encoded in molecular potentials