Rechargeable magnesium-ion battery based on a TiSe2-cathode with d-p orbital hybridized electronic structure