Australian men's rugby sevens qualify for Tokyo Olympic Games despite scare