Long-distance contributions to the parity-violating pion-nucleon coupling