Rising oil and natural gas prices, plus a renewed emphasis on energy security, are boosting demand for batteries and electric vehicles.