Magmatic intrusions could lead to prolific traps for hydrocarbon and geothermal energy resources