Nano-chemo-mechanics of advanced materials for hydrogen storage and lithium battery applications