Wrexham have missed a golden opportunity to play a final at Wembley Stadium after losing to Peterborough United on penalties in the EFL Trophy semifinals.