Computer-aided design of electrode structures in battery materials