pinToInterrupt() variant macro and attachInterruptToPin()

As discussed on developers list.