Scotland's hopes of reaching Euro 2016 ended as Poland equalised with the final kick of the match at Hampden.