Charger-mediated energy transfer for quantum batteries: An open-system approach