get battery capacity from sys file