Hartlepool United are through to the second round of the Emirates FA Cup in a dramatic penalty shootout against Solihull Moors.