Rio asks for federal troops after gangs attack police in slums