Coupled mechanochemical theories for reacting systems with application to nanovoid nucleation and Li-ion batteries