Li-Ion And Na-Ion Battery Anode Materials And Photoanodes For Photochemistry