Scotland reach first major tournament since 1998 after penalty drama