Insights into the unconventional superconductivity in HfV2Ga4 and ScV2Ga4 from first-principles electronic-structure calculations