Query-based Temporal Fusion with Explicit Motion for 3D Object Detection