Superior catalytic effect of titania - porous carbon composite for the storage of hydrogen in MgH2 and lithium in a Li ion battery