World military spending topped $1 trillion in 2004