Hybrid exchange-correlation functionals applied to hyperfine interactions at lanthanide and actinide impurities in Fe