High-capacity electrode materials for electrochemical energy storage: Role of nanoscale effects