Sri Lanka revive T20 World Cup ambitions with win over Afghanistan