what is the purpose of an assault rifle