The electronic states of mixed molecular crystals I. Theory for shallow traps