Control of Andreev bound state population and related charge-imbalance effect