Motion-Aware Temporal Median Filtering for Robust Background Estimation