Variationally consistent mass scaling for explicit time-integration schemes of lower- and higher-order finite element methods