The US military is getting closer to deploying lasers and rail guns — here’s how they might be used