Operating conditions of batteries in off-grid renewable energy systems